package Demo;

public enum Season {
    //枚举类有抽象方法,那么枚举项必须要全部重写
    SPRING("春"){
        @Override
        public void show() {
        }
    },SUMMER("夏"){
        @Override
        public void show() {
        }
    },AUTUMN("秋"){
        @Override
        public void show() {
        }
    },WINTER("冬"){
        @Override
        public void show() {
        }
    };
    private String name;
   // private Season() {}

    private Season(String name) {
        this.name = name;
    }
    public  abstract void show();
}
